#Makefile for libraries
#This makefile is used by makefile which compiles whole project

CXX = gcc
CXXFLAGS =
OBJS = mem_abs.o
LINK_TARGET = mem_abs.o
REBUILDABLES = ${OBJS} ${LINK_TARGET}

all: ${LINK_TARGET}
	echo Functions compilation done
	
${OBJS}: mem_abs.c
	${CXX} ${CXXFLAGS} $^ -c -o $@
	
clean:
	rm -f *.o
	echo Clean done
	
#Komentarz:
#zasada działania makefile:
#odsyłam do linku: http://www.cprogramming.com/tutorial/makefiles.html
#tam dalej jest link do advanced use of makefiles. wystarczy przeczytać by zrozumieć

